import random
from faker import Faker

fake = Faker('zh_CN')  # 使用中文模式生成假数据

announcements1 = []

for i in range(30):
    announcement = {
        "announcement_title": fake.sentence(nb_words=4),  # 随机生成4个单词的标题
        "announcement_detail": fake.text(max_nb_chars=200),  # 随机生成200个字符以内的内容
        "announcement_date": fake.date_between(start_date='-1y', end_date='today').strftime('%Y-%m-%d')  # 随机生成一年以内的日期
    }
    announcements1.append(announcement)

tools = [
    {
        "title": "有氧训练",
        "detail": "有氧训练",
        "image": "../static/images/qicai1.png",
        "url": "#"
    },
    {
        "title": "力量训练",
        "detail": "力量训练",
        "image": "../static/images/qicai2.png",
        "url": "#"
    },
    {
        "title": "固定器械",
        "detail": "固定器械",
        "image": "../static/images/qicai3.png",
        "url": "#"
    },
    {
        "title": "固定器械",
        "detail": "固定器械",
        "image": "../static/images/qicai4.png",
        "url": "#"
    },
]

announcements = [
    {
        "announcement_title": "健身房开业通知",
        "announcement_detail": "健身房将于本周六正式开业，欢迎大家前来体验！",
        "announcement_date": "2022-01-01"
    },
    {
        "announcement_title": "健身房维护通知",
        "announcement_detail": "由于设备维护，健身房将于下周一暂停营业一天，敬请谅解。",
        "announcement_date": "2022-01-05"
    },
    {
        "announcement_title": "健身房优惠活动",
        "announcement_detail": "本月健身房推出多种优惠活动，详情请咨询前台工作人员！",
        "announcement_date": "2022-01-10"
    },
    {
        "announcement_title": "健身房开业通知",
        "announcement_detail": "健身房将于本周六正式开业，欢迎大家前来体验！",
        "announcement_date": "2022-01-01"
    },
    {
        "announcement_title": "健身房维护通知",
        "announcement_detail": "由于设备维护，健身房将于下周一暂停营业一天，敬请谅解。",
        "announcement_date": "2022-01-05"
    },
    {
        "announcement_title": "健身房优惠活动",
        "announcement_detail": "本月健身房推出多种优惠活动，详情请咨询前台工作人员！",
        "announcement_date": "2022-01-10"
    },
    {
        "announcement_title": "健身房开业通知",
        "announcement_detail": "健身房将于本周六正式开业，欢迎大家前来体验！",
        "announcement_date": "2022-01-01"
    },
    {
        "announcement_title": "健身房维护通知",
        "announcement_detail": "由于设备维护，健身房将于下周一暂停营业一天，敬请谅解。",
        "announcement_date": "2022-01-05"
    },
    {
        "announcement_title": "健身房优惠活动",
        "announcement_detail": "本月健身房推出多种优惠活动，详情请咨询前台工作人员！",
        "announcement_date": "2022-01-10"
    }
]

notices = [
    {
        "notice_title": "健身房开业啦！",
        "notice_detail": "健身房正式开业啦，欢迎大家前来预约健身课程！",
        "notice_image": "../static/images/notice1.jpg",
        "notice_url": "#"
    },
    {
        "notice_title": "新课程上线",
        "notice_detail": "我们新增了瑜伽、普拉提等多种课程，欢迎大家前来体验！",
        "notice_image": "../static/images/notice2.jpg",
        "notice_url": "#"
    },
    {
        "notice_title": "健身房优惠活动",
        "notice_detail": "本月健身房推出多种优惠活动，详情请咨询前台工作人员！",
        "notice_image": "../static/images/notice3.jpg",
        "notice_url": "#"
    }
]

coaches = [
    {
        "name": "张教练",
        "image": "../static/images/coach1.png",
        "gender": "男",
        "age": 30,
        "teaching_years": 5,
        "specialty": "瑜伽、普拉提"
    },
    {
        "name": "李教练",
        "image": "../static/images/coach2.png",
        "gender": "女",
        "age": 28,
        "teaching_years": 3,
        "specialty": "有氧健身、形体塑造"
    },
    {
        "name": "王教练",
        "image": "../static/images/coach3.png",
        "gender": "男",
        "age": 35,
        "teaching_years": 8,
        "specialty": "拳击、跆拳道"
    },
    {
        "name": "Jeff教练",
        "image": "../static/images/coach4.png",
        "gender": "男",
        "age": 35,
        "teaching_years": 8,
        "specialty": "游泳、举重"
    },
    {
        "name": "刘教练",
        "image": "../static/images/coach5.png",
        "gender": "女",
        "age": 22,
        "teaching_years": 8,
        "specialty": "拳击、跆拳道"
    }
]